package cn.edu.scau.cmi.lintianwei.abstractFactorymethod.factory;

import cn.edu.scau.cmi.lintianwei.abstractFactorymethod.domainAbstractClass.Meat;

public abstract class AbstractFactory {
	public static AbstractFactory getMeatFactory(String company) {
		switch (company) {
		case "Wens":
			return new WensFactory();
		case "Tianbang":
			return new TianbangFactory();
		case "Aonong":
			return new AonongFactory();
		}
		return null;
	}

	public abstract Meat creatPork();

	public abstract Meat creatBeef();

	public abstract Meat creatChicken();
}
